export const ColumnProps = [
    {
        title: '账号',
        dataIndex: 'account',
        width: 200
    },
    {
        title: '编码',
        dataIndex: 'code',
        width: 200
    },
    {
        title: '用户名',
        dataIndex: 'userName',
        width: 200
    },
    {
        title: '手机号',
        dataIndex: 'mobile',
        width: 200
    },
    {
        title: '邮箱',
        dataIndex: 'email',
        width: 200
    },
    {
        title: '微信',
        dataIndex: 'wx',
        width: 200
    },
    {
        title: 'QQ',
        dataIndex: 'qq',
        width: 200
    },
    {
        title: '地址',
        dataIndex: 'address',
        width: 200
    },
    {
        title: '组织',
        dataIndex: 'organizationName',
        width: 200
    },
    {
        title: '部门',
        dataIndex: 'depName',
        width: 200
    },
    {
        title: '职位',
        dataIndex: 'postName',
        width: 200
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300
    },
]


export const RuleProps = {
    account: [{ required: true, message: '登录账号不能为空' }],
    password: [{ required: true, message: '登录密码不能为空' }],
    userName: [{ required: true, message: '登录用户名不能为空' }],
    organization: [{ required: true, message: '请选择组织' }],
    dep: [{ required: true, message: '请选择部门' }],
    post: [{ required: true, message: '请选择班组' }],
    roleIds: [{ required: true, message: '请选择角色' }],
}


export const FormProps = {
    id: '',
    account: '',
    password: '123456',
    userName: '',
    mobile: '',
    email: '',
    wx: '',
    qq: '',
    province: '',
    city: '',
    area: '',
    address: '',
    post: '',
    organization: '',
    dep: '',
    roleIds: []
}


export const FilterItems = [
    {
        type: 'input',
        label: '用户名',
        key: 'userName',
        placeholder:'请输入用户名',
    },
    {
        type: 'input',
        label: '账号',
        key: 'account',
        placeholder:'请输入账号',
    },
    {
        type: 'input',
        label: '手机',
        key: 'mobile',
        placeholder:'请输入手机号',
        maxLength: 11
    },
]


export const FormItems = [
    [
        {
            type: 'input',
            label: '账号',
            isShow: true,
            key: 'account',
            placeholder:'请输入账号',
            maxLength: 20
        },
        {
            type: 'inputPassword',
            label: '密码',
            isShow: true,
            key: 'password',
            placeholder:'请输入密码',
            maxLength: 50
        },
    ],
    [
        {
            type: 'input',
            label: '用户名',
            isShow: true,
            key: 'userName',
            placeholder:'请输入用户名',
            maxLength: 20
        },
        {
            type: 'select',
            label: '组织',
            isShow: true,
            key: 'organization',
            data: [],
            placeholder:'请选择组织'
        },
    ],
    [
        {
            type: 'select',
            label: '部门',
            isShow: true,
            key: 'dep',
            data: [],
            placeholder:'请选择部门'
        },
        {
            type: 'select',
            label: '班组',
            isShow: true,
            key: 'post',
            data: [],
            placeholder:'请选择职班组'
        },
        
    ],
    [
        {
            type: 'select',
            label: '角色',
            isShow: true,
            key: 'roleIds',
            data: [],
            multiple: true,
            placeholder:'请选择角色'
        },
        {
            type: 'input',
            label: '手机号',
            isShow: true,
            key: 'mobile',
            placeholder:'请输入手机号',
            maxLength: 11,
        },
    ],
    [
        {
            type: 'input',
            label: '邮箱',
            isShow: true,
            key: 'email',
            placeholder:'请输入邮箱',
            maxLength: 50
        },
        {
            type: 'input',
            label: '微信',
            isShow: true,
            key: 'wx',
            placeholder:'请输入微信号',
            maxLength: 20
        },
       
    ],
    [
        {
            type: 'input',
            label: 'QQ',
            isShow: true,
            key: 'qq',
            placeholder:'请输入QQ号',
            maxLength: 15
        },
        {
            type: 'input',
            label: '地址',
            isShow: true,
            placeholder:'请输入地址',
            key: 'address'
        },
       
    ],
    [
        {
            type: 'input',
            label: '详细地址',
            isShow: true,
            key: 'qq',
            placeholder:'请输入详细地址',
            maxLength: 50
        }
    ]
]


export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
    code: '',
    mobile: ''
}
